package org.liliya.client;

import org.liliya.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author liliya
 * @date 2021/4/24 14:32
 */
@FeignClient(value = "PRODUCT-DATA-SERVICE") //指定提供数据的微服务的名字
public interface ProductClientFeign {
    @GetMapping("/products")
    List<Product> listProducts();
}
